<?php

if(!defined("IN_ANNOUNCE"))  die("Hacking attempt!");

@set_time_limit(0);
@set_magic_quotes_runtime(0);
@ini_set('display_errors', 'Off');
@ini_set('display_startup_errors', '0');
@ini_set('ignore_repeated_errors', '0');

function timer() {
	list($usec, $sec) = explode(" ", microtime());
	return ((float)$usec + (float)$sec);
}

include('include/init.php');
include('include/secrets.php');
include('include/api_database.php');
include('include/api_cache.php');
include('include/api_options.php');
include('include/benc.php');
include('include/functions_announce.php');

dbconn();
LoadOptions();
if ( $options['last_cleanup'] < TIMENOW ) {
	SetOption('last_cleanup',TIMENOW+$options['autoclean_interval']);
	include('include/cleanup.php');
	@ignore_user_abort(1);
	@register_shutdown_function('docleanup');
}

?>